package com.helloaps.scheduling.domain;

import ai.timefold.solver.core.api.domain.lookup.PlanningId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    @PlanningId
    private String id;
    private String orderNo;
    private String orderType;
    private String customer;
    private LocalDateTime createTime;
    private LocalDateTime idealTIme;
    private int quantity;
    private String status;

    private int priority;
    private boolean pinned;

    private String remark;

    private Material material;

    public enum Type
    {
        GAS_HOLDER("1"), SHEET_METAL("2"), PIPELINE("3"), PARTS("4");

        private final String value;

        Type(String value)
        {
            this.value = value;
        }

        public String value()
        {
            return this.value;
        }
    }

}
